package com.my.behaviourtype.visitor;

public class Teacher implements Visitor {

	@Override
	public void visit(Enterprise en) {
		System.out.println("teacher visit " + en.name);
	}

	@Override
	public void visit(School s) {
		System.out.println("teacher visit " + s.name);
	}
	
}
